package com.bootdo.system.service.impl;

import cn.hutool.core.util.IdUtil;
import com.bootdo.system.dao.SafeItemDao;
import com.bootdo.system.domain.SafeItemDO;
import com.bootdo.system.service.SafeItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.Map;



@Service
public class SafeItemServiceImpl implements SafeItemService {
	@Autowired
	private SafeItemDao itemDao;
	
	@Override
	public SafeItemDO get(Long id){
		return itemDao.get(id);
	}
	
	@Override
	public List<SafeItemDO> list(Map<String, Object> map){
		return itemDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return itemDao.count(map);
	}
	
	@Override
	public int save(SafeItemDO item){
		item.setCreateTime(new Date());
		return itemDao.save(item);
	}
	
	@Override
	public int update(SafeItemDO item){
		return itemDao.update(item);
	}
	
	@Override
	public int remove(Long id){
		return itemDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return itemDao.batchRemove(ids);
	}
	
}
